import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import set_node_cls from '@dfeidao/atom-web/ui/set-node-cls';

import set from '@dfeidao/atom-web/local/set';
import render from '@dfeidao/atom-web/render/render';
import p002 from './p002';

export default async function a001(fd: IFeidaoAiBrowserComponent, knowledge_class1: number, flags: string) {
	// todo
	const knowledge_class = knowledge_class1;
	const addpge = fd.data.node.querySelector<HTMLDivElement>('[data-id="addpage"]');
	set_node_cls(addpge, 'display-n', false);
	render(fd,'',p002,'p002','inner');
	set(fd, 'knowledge_class', knowledge_class);
}
